<div class="title">
  <h1>Truppen</h1>
</div>

<div class="content">

  <table>
    <tr>
      <th class="heading">Einheit</th>
      <th class="heading">Menge</th>
      <th class="heading">Verluste</th>
    </tr>

    <% for troop in @troops %>
      <tr class="line">
        <td class="description"><%= link_to troop.unit.name, army_troop_path(@army, troop) %></td>
        <td class="def" id="right"><%=h troop.menge %></td>
        <td class="def" id="right"><%=h troop.losses %></td>
        <td><%= link_to 'Edit', edit_army_troop_path(@army, troop) %></td>
        <td><%= link_to 'Destroy', army_troop_path(@army, troop), :confirm => 'Are you sure?', :method => :delete %></td>
      </tr>
    <% end %>
  </table>
</div>

<% content_for :navigation do %>
  <li>
    <%= link_to 'Weitere Truppen', new_army_troop_path(@army) %>
  </li>
<% end %>